//
//  MyTableViewCell3.m
//  12.26豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "MyTableViewCell3.h"

@implementation MyTableViewCell3
- (void)dealloc{
    [_imgView release];
    [_imgView2 release];
    [_view release];
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [_label4 release];
    [_label5 release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)creatCell{
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    
    self.imgView2 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView2];
    [_imgView2 release];
    
    self.imgView3 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView3];
    [_imgView3 release];
    
    self.imgView4 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView4];
    [_imgView4 release];
    
    self.imgView5 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView5];
    [_imgView5 release];
    
    self.view = [[UIImageView alloc] init];
    [_imgView addSubview:_view];
    [_view release];
    
    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:_label];
    [_label release];
    
    self.label1 = [[UILabel alloc] init];
    [self.contentView addSubview:_label1];
    [_label1 release];
    
    self.label2 = [[UILabel alloc] init];
    [self.contentView addSubview:_label2];
    [_label2 release];
    
    self.label3 = [[UILabel alloc] init];
    [self.contentView addSubview:_label3];
    [_label3 release];
    
    self.label4 = [[UILabel alloc] init];
    [self.contentView addSubview:_label4];
    [_label4 release];
    
    self.label5 = [[UILabel alloc] init];
    [self.contentView addSubview:_label5];
    [_label5 release];
    

}
- (void)layoutSubviews{
    [super layoutSubviews];
    
    _imgView.frame = CGRectMake(self.contentView.center.x - 180, self.contentView.center.y - 80, 360, 160);
    
    _imgView2.frame = CGRectMake(270, 55, 90, 110);
    
    _imgView3.frame = CGRectMake(15, 55, 20, 20);
    
    _imgView4.frame = CGRectMake(15, 85, 20, 20);
    
    _imgView5.frame = CGRectMake(15, 115, 20, 20);
    
    _view.frame = CGRectMake(5, 30, 350, 120);
    _view.backgroundColor = [UIColor whiteColor];
    _view.layer.cornerRadius = 10;
    
    _label.frame = CGRectMake(15, 25, 350, 20);
    
    _label1.frame = CGRectMake(45, 55, 225, 20);
    
    _label2.frame = CGRectMake(45, 85, 200, 20);
    
    _label3.frame = CGRectMake(45, 115, 200, 20);
    
    _label4.frame = CGRectMake(15, 145, 120, 20);
    
    _label5.frame = CGRectMake(140, 145, 100, 20);
    

    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
